#!/bin/bash
if [ $# -lt 1 ];then
  echo "Usage: $0 [picDirPath]"
  exit 1
fi

picDirPath=$1
echo "file logo.mp4" > mp4merge.list
for iv in $(ls mp4Cache/*.mp4)
do
  echo "file $iv"
done >> mp4merge.list
ffmpeg -hide_banner -f concat -safe 0 -i mp4merge.list -c copy -y "${picDirPath}.mp4"
exit 0

